package demo1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: liangyuanzhang
 * Date: 2025-3-12
 * Time: 8:47
 */
public class Test {
    public static void main(String[] args) {
        MyArrayList myArrayList = new MyArrayList();
        myArrayList.add(1);
        myArrayList.add(2);
        myArrayList.add(3);
        myArrayList.add(4);
        myArrayList.add(5);

        System.out.println(myArrayList.get(10));


/*        myArrayList.add(2,15);
        myArrayList.add(2,115);
        myArrayList.add(8,999);*/

        myArrayList.display();


    }
    public static void main1(String[] args) {

        MyArrayList myArrayList = new MyArrayList();

        IList list = new MyArrayList();

        System.out.println(list.size());
        System.out.println(myArrayList.size());

        System.out.println("======");
        list.display();
        myArrayList.display();
    }
}
